package array;

public class demo1 {
    public static void main(String[] args) {
        //静态初始化数组
        int[] arr = {1,2,3,4,5,6,7,8,9};
        System.out.println(arr.length);
        System.out.println(arr[0]);
        System.out.println(arr);//[I@6acbcfc0 数组的地址
        double[] arr1 = {1.23,2.34,3.45,4.56,5.67,6.78,7.89,8.90,9.01};
        System.out.println(arr1);//[D@5f184fc6 数组的地址
        //动态初始化数组
        int[] arr2 = new int[10];
        System.out.println(arr2.length);
    }
}
